<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/demo04.js">

    </script>
</head>
<body>
    <!-- onclick:点击事件
    <input type="submit" name="submit" value="显示hello" onclick="hello()"> -->

    <!-- 获取文本框的值 -->
    <!-- <form action="" name="myForm" id="myForm">
        <input type="text" name="username" id="username">
        <input type="button" value="获取文本框的值" onclick="getText()">
    </form>
    <form action="" name="youForm" id="youForm2">
        <input type="text" name="useryou" id="useroyu">
        <input type="button" value="获取文本框的值" onclick="getTxet()">
    </form>
    <form action="">
        <input type="text" name="sum" id="sum">

    </form>
    <input type="submit" name="submit" value="加" onclick="xaincheng()"> -->


    请输入第一个数：<input type="text" id="num1"><br>
    请输入第二个数：<input type="text" id="num2"><br>
    <input type="button" value="+" onclick="plus()">
    <input type="button" value="-" onclick="plus()">
    <input type="button" value="*" onclick="plus()">
    <input type="button" value="/" onclick="plus()"><br>
    结果:<input type="text" id="result">
</body>
</html>